package team.nmsg;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@ServletComponentScan
@EnableTransactionManagement
public class SysSpringBoot  extends SpringBootServletInitializer{
	
	private static Logger logger =  LoggerFactory.getLogger(  SysSpringBoot.class );
	
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {  
        return application.sources(SysSpringBoot.class);  
    }  
    
	public static void main(String[] args) {
		
		logger.info(  "SYS RUN  ........................." );
		SpringApplication.run(SysSpringBoot.class, args);
		
	}
	
}
